#include<iostream>
#include<vector>

using namespace std;

int main()
{
	vector<int> List =  {1,2,3,4,5,6,7,8,9};
	for(int A:List)
		cout << A << " ";
	cout << endl;
	for(int &A:List)
		A = (A%2 ? A*A:A);
	for(int A:List)
		cout << A << " ";
	 cout <<  endl;
	return 0;
}
